<?php
namespace app\index\model;

use think\Model;

class Role extends Model
{
    public function getLists($where,$page,$limit)
    {
        return $this ->where($where) -> paginate($limit,false,['page'=>$page]); 
    }
}



?>